package zzz.Text.text;

public class goodstext {
    public static void main(String[] args) {
        goods[] arr = new goods[3];
        goods g1 = new goods("001", 5900, "华为", 100);
        goods g2 = new goods("002", 270, "保温杯", 50);
        goods g3 = new goods("003", 12.7, "枸杞", 50);

        arr[0] = g1;
        arr[1] = g2;
        arr[2] = g3;
        for (int i = 0; i < arr.length; i++) {
            goods goods = arr[i];
            System.out.println(goods.getId()+","+goods.getName()+","+goods.getPrice()+","+goods.getConunt());
        }
    }
}
